package com.xintai.sparepart.spareandpart.service;

import java.util.List;
import com.xintai.sparepart.spareandpart.domain.BeiKuwei;

/**
 * 库位Service接口
 *
 * @author xintai
 * @date 2020-12-23
 */
public interface IBeiKuweiService
{
    /**
     * 查询库位
     *
     * @param kuweiId 库位ID
     * @return 库位
     */
    public BeiKuwei selectBeiKuweiById(Long kuweiId);

    /**
     * 查询库位列表
     *
     * @param beiKuwei 库位
     * @return 库位集合
     */
    public List<BeiKuwei> selectBeiKuweiList(BeiKuwei beiKuwei);

    /**
     * 新增库位
     *
     * @param beiKuwei 库位
     * @return 结果
     */
    public int insertBeiKuwei(BeiKuwei beiKuwei);

    /**
     * 修改库位
     *
     * @param beiKuwei 库位
     * @return 结果
     */
    public int updateBeiKuwei(BeiKuwei beiKuwei);

    /**
     * 批量删除库位
     *
     * @param kuweiIds 需要删除的库位ID
     * @return 结果
     */
    public int deleteBeiKuweiByIds(Long[] kuweiIds);

    /**
     * 删除库位信息
     *
     * @param kuweiId 库位ID
     * @return 结果
     */
    public int deleteBeiKuweiById(Long kuweiId);

    /**
     * 同一个仓库是否有重名库位
     * @param cangkuId
     * @param kuweiName
     * @return
     */
    boolean selectkuweiNamesake(Integer cangkuId, String kuweiName);
}
